import 'package:lx_widgets_library/extension/enum_ex.dart';

// 第三方登录类型
enum Auth3rdType {
  apple("apple"),
  google("google");

  final String name;
  // 构造函数
  const Auth3rdType(this.name);
  // 通过 title 获取枚举类型
  static Auth3rdType? getTypeByTitle(String title) =>
      Auth3rdType.values.firstWhereOrNull((activity) => activity.name == title);
}
